import request from "@/utils/request";

export const captcha = () => {
  return request.post("/member/member/captcha");
};

export const sendSms = (params) => {
  const { mobile, captchaCode, captchaId } = params;
  return request.post("/member/member/sendSms", {
    mobile,
    captchaCode,
    captchaId,
  });
};

export const login = (params) => {
  const { mobile, smsCode, smsCodeId } = params;
  return request.post("/member/member/login", {
    mobile,
    smsCode,
    smsCodeId
  });
};
